package com.perfect.feign;


import com.perfect.service.impl.ConsumerFallBackService;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * configuration = FeignConfig.class 使用自定义的配置类输出日志
 */
@FeignClient(value = "goods-service",fallback = ConsumerFallBackService.class)
public interface GoodsFeignService {


    @RequestMapping(value = "/goods/nacos/config/test")
    public String configTest();

    /**
     * feign 原生注解使用示例
     *
     * Warnings:
     * - Class StockFeignService has annotations [FeignClient] that are not used by contract Default 原生注解不能和spring mvc注解混用
     * @return
     */
//    @RequestLine("GET /contractTest")
//    public String contractTest();
}
